package com.zx.cloud.order.service;

import com.zx.cloud.order.model.OrderTbl;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zhaoxuan
 * @since 2021-12-22
 */
public interface OrderTblService extends IService<OrderTbl> {

    /**
     * 下单：创建订单、减库存，涉及到两个服务
     *
     * @param userId
     * @param commodityCode
     * @param count
     */
    void placeOrder(String userId, String commodityCode, Integer count);
}
